package com.liu.my_blog_system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liu.my_blog_system.entity.TbUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * tb_user (TbUser)表数据库访问层
 *
 * @author liuchengjie
 * @since 2021-04-07 14:19:04
 */
public interface TbUserMapper extends BaseMapper<TbUser> {

    Integer selectByUsername(@Param("username") String username);

    Integer selectByEmail(@Param("email") String email);

    void updatePasswordByEmail(@Param("password") String encode,@Param("email") String email);

    void updateEmailById(@Param("email") String email, @Param("id") String id);
}
